# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-http-lite
pkgver=2.44
pkgrel=5
pkgdesc="Perl/CPAN Module HTTP::Lite"
arch=(any)
url="https://search.cpan.org/dist/HTTP-Lite"
license=("GPL" "PerlArtistic")
options=(!emptydirs)
source=("https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/HTTP-Lite-$pkgver.tar.gz")
sha256sums=('38e43d7911cfc14e3a38f0382b6cc7a6d559307d23b109ce73ac7d24a9b3e77c')

build() {
  cd "$srcdir"/HTTP-Lite-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/HTTP-Lite-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
